const snapshotDao = require('../dao/snapshotDao');


module.exports.find = async function(page,searchParams){
    return await snapshotDao.find(page,searchParams);
}

module.exports.findById = async function(id){
    return await snapshotDao.findById(id);
}

module.exports.delete = async function(id){
    return await snapshotDao.delete(id);
}

module.exports.update = async function(snapshot){
    return await snapshotDao.update(snapshot);
}

module.exports.insertSnapshot = async function(snapshot){
    return await snapshotDao.insertSnapshot(snapshot);
}